﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TXTD.Admin.Data.Entitys.System
{
    [Table("SYS_ROLE")]
    public class SysRole : BaseEntity
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        [Column("ROLE_ID")]
        [MaxLength(32)]
        public string RoleId { get; set; } = Guid.NewGuid().ToString("N");

        /// <summary>
        /// 角色编号
        /// </summary>
        [Column("ROLE_CODE")]
        [MaxLength(200)]
        public string RoleCode { get; set; }

        /// <summary>
        /// 角色名称
        /// </summary>
        [Column("ROLE_NAME")]
        [MaxLength(200)]
        public string RoleName { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        [Column("ENABLED")]
        public bool Enabled { get; set; }
    }
}